package com.wuchao.spring.ioc.printer.printing;

import com.wuchao.spring.ioc.printer.ink.Ink;
import com.wuchao.spring.ioc.printer.paper.Paper;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author wuchao66
 * @Date 2022/9/26 10:37
 * @PackageName:com.wuchao.spring.ioc.printer.printing
 * @ClassName: Printing
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
@Slf4j
public class Printing {
    public Ink getInk() {
        return ink;
    }

    public void setInk(Ink ink) {
        this.ink = ink;
    }

    public Paper getPaper() {
        return paper;
    }

    public void setPaper(Paper paper) {
        this.paper = paper;
    }

    //控制反转 留出get/set
    private Ink ink;
    private Paper paper;
    public void show(){
        log.info(ink.getInk()+"油墨在"+paper.getPaper()+"纸上打印");
    }

}
